package com.example.hbutliving.domain.result;


import com.example.hbutliving.config.qiniu.QiNiuConfig;
import com.example.hbutliving.domain.dao.Label;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class RecommendedLabelResult {
    private int id;
    private int hot;
    private String icon;
    private String content;

    public RecommendedLabelResult(Label label){
        this.id = label.getId();
        this.hot = label.getHot();
        this.content = label.getContent();
        this.icon  = QiNiuConfig.URL+label.getIcon();
    }
}
